package com.algo.core;

import lombok.Getter;
import lombok.Setter;

/**
 * 服务端配置类
 */
@Getter
@Setter
public class RapidSeverConfig {
    /**
     * 服务端默认的端口号
     */
    private int serverPort = 8888;

    /**
     * boosGroup默认线程数量
     */
    private int bossLoopGroupCount = 1;

    /**
     * workGroup默认线程数量
     */
    private int workLoopGroupCount = Runtime.getRuntime().availableProcessors();

    /**
     * 是否开启epoll模式
     */
    private boolean useEpoll = false;


    /**
     * processor核心线程数
     */
    private int requestProcessorCoreThreadCount;

    /**
     * processor最大线程数
     */
    private int requestProcessorMaxThreadCount;

    /**
     * processor线程存活时间
     */
    private long requestProcessorThreadAliveTime = 60;

}
